php bbcode tag dellete

48

php bbcode tag dellete -

<?php
function stripBBCode($text_to_search) {
 $pattern = '|[[\/\!]*?[^\[\]]*?]|si';
 $replace = '';
 return preg_replace($pattern, $replace, $text_to_search);
}

echo stripBBCode($text_to_search);
?>

Comments

Submit
0 Comments